$(document).ready(function(){

	$("#registerStu").click(function(){
		$("#content").load("main/student/register.jsp");
	});
	
	$("#registerTea").click(function(){
		$("#content").load("main/teacher/register.jsp");
	});
	
	
	var type = 	$("#type").attr("name");
	var b = $("#return").attr("name");
	//alert(type+b)
	if(type==2&&b=="true"){
		$("#menu").load("main/teacher/teaMenu.jsp");
	}else if(type==1&&b=="true"){
		$("#menu").load("main/student/stuMenu.jsp");
	}
		
	
});


